using Microsoft.Extensions.DependencyInjection;
namespace CMS.Common;

public static class ServiceProvider {
    public static IServiceProvider? Provider { get; set; }

    public static T GetService<T>()
    {
        return Provider!.GetService<T>()!;
    }
}